﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DomainModel.Abstract;
using System.Configuration;
using System.Data.Objects;
using System.Data;
using System.Data.Entity;
using DomainModel.Entities;
using DomainModel.Context;

namespace DomainModel.Concrete
{
    public class SqlArtistRepository : Repository<Artist>
    {

        public SqlArtistRepository()
            :base(new SLUDbContext())
        {

        }

        public virtual IEnumerable<Artist> GetAllByUserName(string userName)
        {
            return GetAll().Where(a => a.UserName == userName);
            //return _dbSet.Where(a => a.UserName == userName);
        }
    }
}

